package com.itheima.health.controller;

import com.itheima.health.service.ReportServicer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

@RestController
@RequestMapping("/report")
@Slf4j
public class RepotController {

    @Autowired
    ReportServicer reportServicer;


    /**
     * 运营数据统计
     */
    @GetMapping("/exportBusinessReport")
    public void exportBusinessReport(HttpServletResponse response){
        log.info("进来了");
        reportServicer.exportBusinessReport(response);
    }
}
